#include<iostream>
using namespace std;

class A {
    private:
        int x,y;
    public:
        void show() {
            cout << "x = " << x << ",y = " << y << endl;
        }
};

int main() {
    A a;
    A *pa = &a;
    int *px = &(pa->x);
    *px = 5;
    a.show();
    return 0;
}
